﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntreeServer.Module;
using Newtonsoft.Json;

namespace ME.SDK.SampleTheme.Controls
{
    public class Tiles : EntreeListItem
    {
        public Tiles(EntreeListGroup g)
            : base(g)
        {
            this.ListItemStyle = "tiles";
            this.TileCollection = new List<Tile>();
        }

        public List<Tile> TileCollection
        {
            get;
            set;
        }
    }

    public class Tile
    {
        public Tile()
        {
            this.Title = "Title";
            this.IconUrl = "/_layouts/images/EntreeServer/inc/at/at-view-64.png";
        }

        public string Title
        {
            get;
            set;
        }

        public string IconUrl
        {
            get;
            set;
        }

        public EntreeClickActionObject ClickAction
        {
            get;
            set;
        }
    }
}
